package com.xquant.transaction_management_system.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xquant.transaction_management_system.model.PO.FinancialInstruments;

import java.util.List;

public interface FinancialInstrumentsService extends IService<FinancialInstruments> {

    IPage<FinancialInstruments> selectPageByDebentureCode(Page<FinancialInstruments> pageParam, String debentureCode);

    IPage<FinancialInstruments> selectPage(Page<FinancialInstruments> pageParam);

    FinancialInstruments getByCode(String debentureCode);

    IPage<FinancialInstruments> getByAccountPage(Page<FinancialInstruments> pageParam, String transactionAccount);

    List<FinancialInstruments> getByConfigID(Long congigurationId);

    IPage<FinancialInstruments> getByAccountAndCodePage(Page<FinancialInstruments> pageParam, QueryWrapper<FinancialInstruments> queryWrapper);
}
